package com.danciyixue.boot.dcyx.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.*;

/**
 * 组织机构信息表单对象
 *
 * @author youlaitech
 * @since 2025-06-15 16:23
 */
@Getter
@Setter
@Schema(description = "组织机构信息表单对象")
public class OrganizationsForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "组织机构ID")
    private Long id;

    @Schema(description = "所属企业ID")
    @NotNull(message = "所属企业ID不能为空")
    private Long enterpriseId;

    @Schema(description = "组织机构名称")
    @NotBlank(message = "组织机构名称不能为空")
    @Size(max=128, message="组织机构名称长度不能超过128个字符")
    private String name;

    @Schema(description = "机构代码")
    @NotBlank(message = "机构代码不能为空")
    @Size(max=64, message="机构代码长度不能超过64个字符")
    private String code;

    @Schema(description = "状态")
    private Integer status;


}
